/*
 * File Created: 2019-11-28 22:30:33
 * Author: 余保林 (yubaolin6@outlook.com)
 * Desc: 提现管理相关接口
 * Last Modified: 2019-11-30 16:20:03
 * Modified By: 余保林 (yubaolin6@outlook.com>)
 */

import request from '@/utils/request'
import Qs from 'qs'

export function interafceQuery(params) {
  return request({
    url: `/platform/api/query?${Qs.stringify(params)}`,
    method: 'get'
  })
}

export function interfaceAdd(data) {
  return request.post('/platform/api', data)
}

export function interfaceEdit(data) {
  return request.patch('/platform/api', data)
}

export function interfaceDel(id) {
  return request.delete(`/platform/api/${id}`)
}

export function interfaceAll() {
  return request.get('/platform/api')
}
